package com.wind.cloud.common.i18n;


import com.wind.cloud.common.util.SpringUtils;

/**
 * 国际化工具类
 *
 * @author wind.
 */
public abstract class MessageUtils {

    private static MessageService messageService;

    public static String getMessage(String key, Object... params) {
        return getMessageService().getMessage(key, params);
    }

    private static MessageService getMessageService() {
        if (messageService == null) {
            messageService = SpringUtils.getBean(MessageService.class);
        }
        return messageService;
    }

}
